package com.hbt.myplus.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author astupidcoder
 * @since 2020-12-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Drug extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String drugname;

    @TableField(exist = false)
    private Integer relateId;

    @TableField(exist = false)
    private String v;

    @Override
    public String toString() {
        return "Drug{" +
                "id=" + id +
                ", drugname='" + drugname + '\'' +
                ", relateId=" + relateId +
                ", v='" + v + '\'' +
                ", c='" + c + '\'' +
                ", sno='" + sno + '\'' +
                ", count=" + count +
                ", avatar='" + avatar + '\'' +
                ", price=" + price +
                ", memo='" + memo + '\'' +
                ", catogoryIds='" + catogoryIds + '\'' +
                '}';
    }

    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }

    public String getC() {
        return c;
    }

    public void setC(String c) {
        this.c = c;
    }

    @TableField(exist = false)
    private String c;

    public Integer getRelateId() {
        return relateId;
    }

    public void setRelateId(Integer relateId) {
        this.relateId = relateId;
    }

    private String sno;

    @TableField(exist = false)
    private Integer count;

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDrugname() {
        return drugname;
    }

    public void setDrugname(String drugname) {
        this.drugname = drugname;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getCatogoryIds() {
        return catogoryIds;
    }

    public void setCatogoryIds(String catogoryIds) {
        this.catogoryIds = catogoryIds;
    }

    private String avatar;

    private BigDecimal price;

    private String memo;

    private String catogoryIds;


}
